package com.wx.mall.common.exception.code;

public enum TemplateResponseCode implements ResponseCodeInterface {
    DELETE_ERROP(6001, "模板删除失败"),
    UPDATE_ERROP(6002, "模板编辑失败"),
    ADD_ERROP(6003, "新增失败，模板名称已经存在");
    /**
     * 响应码
     */
    private int code;

    /**
     * 提示
     */
    private String msg;

    TemplateResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
